from odoo import api, fields, models


class RPCustomerLevel(models.Model):
    _name = 'rp.customer.level'
    _description = '客户分类'
    _sql_constraints = [('name_uniq', 'unique (name)', '分类名称必须唯一')]

    name = fields.Char(string='等级名称', required=True, copy=False, index=True)
    remark = fields.Text(string='备注')
